package com.wn.class30.weixinmessageHandler;

import com.wn.class30.service.WXMyOrderService;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class OrderSate {
    @Resource
    private WXMyOrderService myOrderService;
    //@Scheduled(cron = "*/5 * * * * ?")
    @Scheduled(cron = "0 0 23 * * ?")
    public void setOrderSate() throws Exception {
        myOrderService.updateInitShouhuo();
    }
}
